package cn.appsys.service.deve;

import java.util.List;

import cn.appsys.pojo.AppInfo;

public interface AppInfoService {
	
	public List<AppInfo> getAllBy(String softwareName,Integer status,
			Integer flatformId,Integer categoryLevel3,
			Integer categoryLevel1,Integer categoryLevel2,
			Integer index);
	
	public int getAllCount(String softwareName,Integer status,
			Integer flatformId,Integer categoryLevel3,
			Integer categoryLevel1,Integer categoryLevel2);
	
	public int addAppInfo(AppInfo app);
	
	public int getByAPKName(String apkName);
	
	public AppInfo getById(String id);
	
	public int upAppInfo(AppInfo app);
	
	public int delFile(String id);
	
	public int upAppVersion(String id);
	
	public int delApp(String id);
	
	/**
	 * flag为null则为下架操作
	 * 反之为上架
	 * @param id appId
	 * @param flag
	 * @return
	 */
	public int upStart(String id,String flag);
}
